package com.voice.server.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;

/*
 * @auther: wangjiacai
 *
 * @create: 2018-05-07 17:38:44
 */
@Data
@Entity
@Table(name ="tbl_function")
@DynamicUpdate
@Proxy(lazy = false)
public class Function extends SupperEntity{

    /*功能名称*/
    @NotBlank(message = "名称不能为空")
    private String name;

    /*访问url*/
    private String url;

    /*编号*/
    @NotBlank(message = "编号不能为空")
    private String bh;

    /*描述*/
    private String remark;

    @NotBlank(message = "图标不能为空")
    private String icon;
}
